<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<NewsListModel>" %>
<%@ Import Namespace="Netkk.Core"%>
<%@ Import Namespace="Netkk.Models"%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>News Archiv</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        News Archiv</h1>
    <p>
        <%= Html.PagerLinks("News", "NewsArchive", Model.TotalPages, Model.CurrentPage, "pager", "more", "")%></p>
    <%foreach (NewsModel news in Model.News)
      {
          Html.RenderPartial("NewsOverview", news);
      }%>
    <p>
        <%= Html.PagerLinks("News", "NewsArchive", Model.TotalPages, Model.CurrentPage, "pager", "more", "")%></p>
    <% if (Model.ShowCreateNews)
       {
    %>
    <a href="<%=Html.Action("News", "Create") %>" id="createbutton" class="newsadd button"><span>News erstellen</span></a>
    <%} %>
</asp:Content>
